
public class Reverse1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	int a=12345;
	int c=0;
	
	for(int i=1;i<=5; i++){
		
		int b=a%10;
		
		c=c*10+b;
		
		a=a/10;
		
		
		
	}
	System.out.println(c);
			

	}

}
